package io.geekidea.boot.test.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.geekidea.boot.framework.page.Paging;
import io.geekidea.boot.test.dto.InvoiceRecordDto;
import io.geekidea.boot.test.entity.InvoiceRecord;
import io.geekidea.boot.test.query.InvoiceRecordQuery;
import io.geekidea.boot.test.vo.InvoiceRecordVo;
import io.geekidea.boot.test.query.AppInvoiceRecordQuery;
import io.geekidea.boot.test.vo.AppInvoiceRecordVo;


/**
 * 发票申请记录 服务接口
 *
 * @author geekidea
 * @since 2025-03-26
 */
public interface InvoiceRecordService extends IService<InvoiceRecord> {

    /**
     * 添加发票申请记录
     *
     * @param dto
     * @return
     * @throws Exception
     */
    boolean addInvoiceRecord(InvoiceRecordDto dto);

    /**
     * 修改发票申请记录
     *
     * @param dto
     * @return
     * @throws Exception
     */
    boolean updateInvoiceRecord(InvoiceRecordDto dto);

    /**
     * 删除发票申请记录
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteInvoiceRecord(Long id);

    /**
     * 发票申请记录详情
     *
     * @param id
     * @return
     * @throws Exception
     */
    InvoiceRecordVo getInvoiceRecordById(Long id);

    /**
     * 发票申请记录分页列表
     *
     * @param query
     * @return
     * @throws Exception
     */
    Paging<InvoiceRecordVo> getInvoiceRecordPage(InvoiceRecordQuery query);

    /**
     * App发票申请记录详情
     *
     * @param id
     * @return
     * @throws Exception
     */
    AppInvoiceRecordVo getAppInvoiceRecordById(Long id);

    /**
     * App发票申请记录分页列表
     *
     * @param query
     * @return
     * @throws Exception
     */
    Paging<AppInvoiceRecordVo> getAppInvoiceRecordPage(AppInvoiceRecordQuery query);

}
